import { ThrowStmt } from '@angular/compiler';
import { Component, OnInit } from '@angular/core';


@Component({
  selector: 'app-right',
  templateUrl: './right.component.html',
  styleUrls: ['./right.component.less']
})
export class RightComponent implements OnInit {

  listOfData = [
    {
      name: 'John Brown',
      age: 52,
      address: 'New York No. 1 Lake Park'
    },
    {
      name: 'Jim Green',
      age: 42,
      address: 'London No. 1 Lake Park'
    },
  ];

  listOfColumns = [
    {
      name: 'Name',
    },
    {
      name: 'Age',
      sortOrder: 'descend',
      sortDirections: ['descend', 'ascend'],
      isSort:true,
    },
    {
      name: 'Address',
    }
  ];
  constructor() { }

  ngOnInit() {
  }

  changeSort(ev, name) {
    console.log('当前列及其升降序',ev, name);
  }

}
